# 算数运算
'''
print(5 + 3)
print(10 / 3)
print(2 * 4)
print(10 - 5)
print(10 ** 2)  # 次方
print(10 // 3)  # 整除
print(10 % 3) # 取余
'''

# 比较运算
# 经常在判断中使用
# None False 0 "" [] {} set() ()
'''
print( 5 > 3 )
print( 5 >= 3 )
print( 5 < 3 )
print( 5 <= 3 )
print( 5 != 3 )
print( 5 == 3 )
result = input('请输入你的账号：')
if result == "123456":
    print('账号登录成功')

# 判断值是否为假
a = None
if a:
    print(True)
else:
    print(False)

'''

# 赋值运算
'''
a = 0
a += 10  # a = a + 10
a -= 5   # a = a - 5  # 10
a *= 5
a /= 5
a %= 5
a **= 5
print(a)
'''

# 与运算
'''
# not 取反
a = 10  # 真
b = 0   # 假
if not (a and b):
    print(True)
else:
    print(False)
# 或运算
if a or b:
    print(True)
else:
    print(False)
'''

# 成员运算
'''
# in  # not in 
str = "hello world"
print("h" in str)
print("h" not in str)
'''

# if 判断
'''
# match 3.10 if
r = input("请输入邮箱账号: ")
# 字符串 endswitch 判断字符串的结尾部分是否符合xxxx
if r.endswith("@163.com"):
    print('当前登录邮箱为网易163邮箱')
    smtp_url="https://mail.163.com"
elif r.endswith("@qq.com"):
    print('当前登录邮箱为qq邮箱')
    smtp_url="https://mail.qq.com"
elif r.endswith("@126.com"):
    print('当前登录邮箱为126邮箱')
    smtp_url="https://mail.126.com"
else:
    print('该邮箱不被支持')

username, password = input('请输入账号：'),input('请输入密码：')
if username == "zhangsan":
    if password == "123456":
        print('登录成功')
    else:
        print('登录失败')
else:
    print('账号不存在')
'''


# for 循环
# 将50个商品全部打包
'''
# for循环，处理可迭代对象 range(开始位置默认为0,结束位置必须填写,步长)
for i in range(1,11): # [0,1,2...,99]
    # if i == 7:
        # continue # 跳过单次循环
        # break # 跳出循环
    print(f"我正在吃第{i}个包子")
# 语法糖
else: # 在循环正常结束时执行
    print('我吃饱喝足了')
'''

# while 循环

# 如果状态满足，则一直去做
a = 0
while a < 10:
    print(a)
    a += 1 # a = a + 1
    # break continue
else:
    print('程序结束')
